package com.lucifer.core.exception;

import com.lucifer.core.Wrapper;
import com.lucifer.core.WrapperProvider;
import lombok.AllArgsConstructor;

/**
 * Created by tangdaoyuan on 2017/1/13.
 */
@AllArgsConstructor
public enum SystemException implements WrapperProvider {

    SYSTEM_ERROR(-1, "系统错误,请联系工作人员");

    private Integer code;

    private String msg;

    @Override
    public Wrapper get() {
        return Wrapper.builder().code(code).msg(msg).build();
    }
}
